import { getCourseInfo } from "../../api/manage";

Page({
  data: {
    course: {}
  },

  onLoad: function(options) {
    const userID = wx.getStorageSync('userID');
    getCourseInfo(userID,options.courseID).then((res) => {
      this.setData({
        course: res.data
      });
    });
  }
});